<?php
namespace Seller\Model;
use Think\Model\ViewModel;

class AmtAgentViewModel extends ViewModel
{
    public $viewFields = array(
        'amt_change' => array(
            'amt_id','agent_id','amt','amt_remark','amt_type','surplus','change_time',
            '_type' => 'LEFT'
        ),
        'agent' => array(
            'shop_id','is_agent',
            '_on' => 'agent.agent_id = amt_change.agent_id' ,
            '_type' => 'LEFT'
        ),
    );
}

